@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
//@import './sidebar.scss';
@import './new-sidebar.scss';
@import './btn.scss';
@import './default.scss';
@import './theme/index.css';
// @import './icons.scss';
@import './icons/iconfont.css';
body {
    height: 100%;
    overflow: hidden;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

li {
    list-style: none;
}

label {
    font-weight: 400;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
    overflow-y: auto;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.padding-content {
    padding: 4px 0;
}

.padding-bottom-15 {
    padding-bottom: 15px;
}

.padding-top-bottom-15 {
    padding: 15px 0;
}

.padding-top-30 {
    padding-top: 30px;
}

.padding-left-20 {
    padding-left: 20px;
}

.padding-left-30 {
    padding-left: 30px;
}

.padding-left-40 {
    padding-left: 40px;
}

.padding-left-55 {
    padding-left: 55px;
}

.padding-left-60 {
    padding-left: 60px;
}

.padding-right-40 {
    padding-right: 40px;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: ' ';
        clear: both;
        height: 0;
    }
}

code {
    background: #eef1f6;
    padding: 15px 16px;
    margin-bottom: 20px;
    display: block;
    line-height: 36px;
    font-size: 15px;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    a {
        color: #337ab7;
        cursor: pointer;
        &:hover {
            color: rgb(32, 160, 255);
        }
    }
}

.warn-content {
    background: rgba(66, 185, 131, 0.1);
    border-radius: 2px;
    padding: 16px;
    padding: 1rem;
    line-height: 1.6rem;
    word-spacing: 0.05rem;
    a {
        color: #42b983;
        font-weight: 600;
    }
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    margin-top: 30px;
}

.text-center {
    text-align: center;
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient( 90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
    .subtitle {
        font-size: 20px;
        color: #fff;
    }
    &.draft {
        background: #d0d0d0;
    }
    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;
    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;
    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}


/* by gq */


/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #f5f5f5;
}


/*定义滚动条轨道 内阴影+圆角*/

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    background-color: #f5f5f5;
}


/*定义滑块 内阴影+圆角*/

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #ccc;
}

.text-right {
    text-align: right;
}

.margin-top-5 {
    margin-top: 5px;
}

.margin-top-8 {
    margin-top: 8px;
}

.margin-top-10 {
    margin-top: 10px;
}

.margin-top-12 {
    margin-top: 12px;
}

.margin-top-14 {
    margin-top: 14px;
}

.margin-top-16 {
    margin-top: 16px;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-bottom-3 {
    margin-bottom: 3px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.margin-bottom-22 {
    margin-bottom: 22px;
}

.margin-left-10 {
    margin-left: 10px;
}

.margin-right-10 {
    margin-right: 10px;
}

.margin-right-5 {
    margin-right: 5px;
}

.app-main {
    padding: 10px;
    box-sizing: border-box;
    min-height: 100%;
}

.el-form-item {
    margin-bottom: 3px;
}

.no-margin-form .el-form-item {
    margin-bottom: 0;
}

.border-form {}

.border-form .el-form-item__label {
    border: 1px solid #dcdfe6;
    border-right: 0;
    height: 36px;
}

.border-form .el-input__inner,
.border-form .el-textarea__inner,
.border-form .gq-input__inner {
    border-radius: 0;
}

.border-form .border-item {
    border: 1px solid #dcdfe6;
    height: 36px;
    padding-left: 15px;
}

.slot-title {
    border-left: 3px solid #6d9cf6;
    padding: 0 8px;
}

.card-no-shadow {
    box-shadow: 0 0 0 0 #fff;
}


/* 隐藏上传按钮 */

.hide-el-upload .el-upload--picture-card {
    display: none;
}


/* 隐藏上传 */

.hidden-upload-card {
    .el-upload--text {
        display: none;
    }
    .el-upload-list__item {
        margin-top: 7px !important;
    }
    .el-upload-list__item-name {
        color: #02a7f0
    }
}

.box-title {
    font-size: 16px;
    margin: 0 0 20px 0;
    padding: 5px 15px;
    border-bottom: 1px solid #ebeef5;
}

@media print {
    .is-print {
        display: block !important;
    }
    .no-print,
    .sidebar-container,
    .navbar,
    .tags-view-container {
        display: none !important;
    }
}

.text-title {
    padding: 18px 0;
    border-bottom: 1px solid #ebeef5;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.text-title-sole {
    border-left: 3px solid #6d9cf6;
    padding: 0 8px;
    font-size: 18px;
}

.gq-input__inner {
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
    min-height: 32px;
    line-height: 30px;
}

.el-form-item__error {
    z-index: 10;
    line-height: 15px;
}

.el-pagination--small .el-pagination__editor.el-input .el-input__inner {
    line-height: 100% !important;
}

//layout布局
.main-width {
    margin: 0 auto;
}

@media (max-width: 1300px) {
    .main-width {
        width: 960px;
    }
}


/*<=1024的设备*/

@media screen and (min-width: 1300px) and (max-width: 1920px) {
    .main-width {
        width: 1200px;
    }
}


/*>=1024且<=1920的设备*/

@media (min-width: 1920px) {
    .main-width {
        width: 1620px;
    }
}


/*>=1920的设备*/


/* Resizer */

.Resizer {
    z-index: 1800 !important;
}


/* .Resizer.columnsres */

.Resizer.columnsres {
    background-color: #d3d3d3 !important;
}

.overflow-auto {
    overflow: auto;
}

.height-50 {
    height: 50%;
}

.height-100 {
    height: 100%;
}

.height-250 {
    height: 250px;
}

.height-300 {
    height: 300px;
}

.height-550 {
    height: 550px;
    overflow-y: auto;
}

.el-button [class*='el-icon-']+span {
    margin-left: 0;
}

// el-cascader 兼容ie
.el-cascader__tags .el-tag>span {
    flex: auto;
}

.el-cascader-node__postfix {
    top: 50%;
    transform: translateY(-50%);
}

// 新增------------------------------------------------------------------------------------------------------------------------------------------------------------------
.viewSpan {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 36px;
    padding: 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viewSpan2 {
    display: block;
    width: 100%;
    height: 35px;
    line-height: 34px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.viewSpan3 {
    display: block;
    width: 100%;
    min-height: 31px;
    line-height: 25px;
    padding: 3px 10px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
    .delete {
        text-decoration: line-through;
    }
    .insert {
        color: green;
    }
}

.viewSpan4 {
    display: block;
    width: 100%;
    min-height: 31px;
    line-height: 25px;
    padding: 3px 10px;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: normal;
    .delete {
        text-decoration: line-through;
    }
    .insert {
        color: green;
    }
}

.el-collapse-item__header {
    border: none;
    padding-left: 15px;
}

.el-collapse-item__wrap {
    border: none;
}

.el-collapse-item__content {
    padding: 0;
}

.el-autocomplete {
    width: 100%;
}

.el-message-box__title {
    font-size: 16px;
}

:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    color: #c0c4cc !important;
}

::-ms-clear,
::-ms-reveal {
    display: none;
}

input::-ms-reveal {
    display: none;
}

input::-ms-clear {
    display: none;
}


/*edge*/

input::-o-clear {
    display: none;
}

.el-table--border td:first-child .cell {
    padding-left: 14px !important;
}

.el-table--border th.el-table__cell.gutter:last-of-type {
    width: 18px !important;
}

.el-form-item__content {
    .el-input__inner {
        height: 36px !important;
        line-height: 36px !important;
    }
}

.spanView {
    display: block;
    width: 100%;
    min-height: 35px;
    line-height: 25px;
    padding: 8px 0 0 0;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
    word-break: normal;
}